<template>
  <div class="loading">
    <i></i>
    <i></i>
    <i></i>
    <i></i>
    <i></i>
  </div>
</template>
<style lang="less" scoped>
.loading {
  display: flex;
  justify-content: center;
  i {
    width: 4px;
    height: 15px;
    transform-origin: left bottom;
    animation: loading .8s 0.4s infinite;
    background-color: #c97070;
    margin-left: 4px;
    &:nth-child(1) {
      animation-delay: -0.5s;
    }
    &:nth-child(2) {
      animation-delay: -0.4s;
    }
    &:nth-child(3) {
      animation-delay: -0.3s;
    }
    &:nth-child(4) {
      animation-delay: -0.4s;
    }
    &:nth-child(5) {
      animation-delay: -0.5s;
    }
  }
}
@keyframes loading {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0.1);
  }
}
</style>